package generator.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * tenant_info
 * @TableName tenant_info
 */
@TableName(value ="tenant_info")
public class TenantInfo implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * kp
     */
    private String kp;

    /**
     * tenant_id
     */
    private String tenantId;

    /**
     * tenant_name
     */
    private String tenantName;

    /**
     * tenant_desc
     */
    private String tenantDesc;

    /**
     * create_source
     */
    private String createSource;

    /**
     * 创建时间
     */
    private Long gmtCreate;

    /**
     * 修改时间
     */
    private Long gmtModified;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    public Long getId() {
        return id;
    }

    /**
     * id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * kp
     */
    public String getKp() {
        return kp;
    }

    /**
     * kp
     */
    public void setKp(String kp) {
        this.kp = kp;
    }

    /**
     * tenant_id
     */
    public String getTenantId() {
        return tenantId;
    }

    /**
     * tenant_id
     */
    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    /**
     * tenant_name
     */
    public String getTenantName() {
        return tenantName;
    }

    /**
     * tenant_name
     */
    public void setTenantName(String tenantName) {
        this.tenantName = tenantName;
    }

    /**
     * tenant_desc
     */
    public String getTenantDesc() {
        return tenantDesc;
    }

    /**
     * tenant_desc
     */
    public void setTenantDesc(String tenantDesc) {
        this.tenantDesc = tenantDesc;
    }

    /**
     * create_source
     */
    public String getCreateSource() {
        return createSource;
    }

    /**
     * create_source
     */
    public void setCreateSource(String createSource) {
        this.createSource = createSource;
    }

    /**
     * 创建时间
     */
    public Long getGmtCreate() {
        return gmtCreate;
    }

    /**
     * 创建时间
     */
    public void setGmtCreate(Long gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * 修改时间
     */
    public Long getGmtModified() {
        return gmtModified;
    }

    /**
     * 修改时间
     */
    public void setGmtModified(Long gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TenantInfo other = (TenantInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getKp() == null ? other.getKp() == null : this.getKp().equals(other.getKp()))
            && (this.getTenantId() == null ? other.getTenantId() == null : this.getTenantId().equals(other.getTenantId()))
            && (this.getTenantName() == null ? other.getTenantName() == null : this.getTenantName().equals(other.getTenantName()))
            && (this.getTenantDesc() == null ? other.getTenantDesc() == null : this.getTenantDesc().equals(other.getTenantDesc()))
            && (this.getCreateSource() == null ? other.getCreateSource() == null : this.getCreateSource().equals(other.getCreateSource()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getKp() == null) ? 0 : getKp().hashCode());
        result = prime * result + ((getTenantId() == null) ? 0 : getTenantId().hashCode());
        result = prime * result + ((getTenantName() == null) ? 0 : getTenantName().hashCode());
        result = prime * result + ((getTenantDesc() == null) ? 0 : getTenantDesc().hashCode());
        result = prime * result + ((getCreateSource() == null) ? 0 : getCreateSource().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", kp=").append(kp);
        sb.append(", tenantId=").append(tenantId);
        sb.append(", tenantName=").append(tenantName);
        sb.append(", tenantDesc=").append(tenantDesc);
        sb.append(", createSource=").append(createSource);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}